package com.pig4cloud.pig.mt.form;

import com.pig4cloud.pig.common.core.exception.ValidateCodeException;
import lombok.Data;

@Data
public class TemplateMsgForm {
    private String openid;
    private String msg;
    private String template;

    public boolean isValid() {
        if (openid == null || openid.isEmpty() || msg == null || msg.isEmpty() || template == null || template.isEmpty()) {
            throw new ValidateCodeException("缺少必要参数");
        }
        return true;
    }
}
